
function createEditorConfig(){
    const componentList = [];
    const componentMap = [];
    return {
        componentList,
        componentMap,
        register: (comp) => {
            componentList.push(comp);
            componentMap[comp.key] = comp;
        }
    }
}

export const registerConfig = createEditorConfig();